package com.charity.website.vo.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 网站用户评论对象 web_user_comment
 *
 */
@Data
@Builder
@RequiredArgsConstructor
@AllArgsConstructor
public class WebUserCommentModel {

    private Long id;

    @NotNull(message = "回复的数据ID不能为空")
    private Long dataId;
    
    private String dataName;

    private Long topId;

    private List<Long> parentIds;

    @NotNull(message = "回复的评论ID不能为空")
    private Long parentId;

    private Long userId;

    private String userName;

    private String headPortraitLink;

    private Long toUserId;

    private String toUserName;

    private String toUserHeadPortraitLink;

    @NotBlank(message = "评论内容不能为空")
    private String content;

    @NotNull(message = "评论类型不能为空")
    private Integer commentType;

    private Integer status;

    private Boolean isLike;

    private Long likeNum;

    private Long commentNum;

    private Boolean isRead;

    private Long createId;

    private Date createTime;

    private Long updateId;

    private Date updateTime;

    private Integer sortFlag;

    private List<WebUserCommentModel> replyList;

}
